<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/9/29
 * Time: 10:21
 */
/**
 * @var \yii\web\View $this
 */

use common\components\tools\Html;
?>

<!-- Profile Image -->
<div class="box box-primary">
    <div class="box-body box-profile">
        <p style="margin: 0 auto; text-align: center;">
            <?=Yii::$app->user->identity->getAvatarImg(100, 100, ['class' => "profile-user-img img-circle"]) ?>
        </p>
        <h3 class="profile-username text-center"><?=Yii::$app->user->identity->profileName ?></h3>

        <p class="text-muted text-center">Software Engineer</p>
        <p>
            <?=Html::a('<b>切换头像</b>', ['site/change-avatar'], ['class' => "btn btn-primary btn-block"]) ?>
            <?=Html::a('<b>重置密码</b>', ['site/reset-password'], ['class' => "btn btn-primary btn-block"]) ?>
            <?=Html::a('<b>信息设置</b>', ['site/change-avatar'], ['class' => "btn btn-primary btn-block"]) ?>
        </p>
        <ul class="list-group list-group-unbordered">
            <li class="list-group-item">
                <b>粉丝</b> <a class="pull-right">1,322</a>
            </li>
            <li class="list-group-item">
                <b>关注</b> <a class="pull-right">543</a>
            </li>
        </ul>
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
